package com.mini.gateway.web.controller.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mini.gateway.web.request.PageRequest;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * ApiLogPageRequest
 *
 */
@Data
public class ApiLogPageRequest extends PageRequest {

    private String routeId;

    private String type;

    private Integer responseCode;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

}
